package com.tydic.test;

public class FileUrl {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String fileUrl = "D:\\apache-tomcat-6.0.26\\webapps\\emc\\shareDownload\\";
		System.out.println("fileUrl========>"+fileUrl);
		fileUrl = fileUrl.replace("\\", "/");
		System.out.println("fileUrl========>"+fileUrl);
		
		String string = "D:/apache-tomcat-6.0.26/webapps/emc/shareDownload/";
		string = string.replace("\\", "/");
		System.out.println("string=======>"+string);
		
		String osName = System.getProperty("os.name").toUpperCase();
		System.out.println("osName=====>"+osName);
	}
}
